<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends AdminController {
    public function index(){
    	$where['type']=1;
    	$where['parentid']=0;
    	$this->menu=M('Menu')->where($where)->select();
    	$where1['type']=2;
    	$where1['parentid']=array('neq',0);
    	$this->menu1=M('Menu')->where($where1)->select();
    	$this->display();
    }
}